﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace VPNLaunch
{
  public class ConnectionInfo
  {
    [Category("Connection")]
    [Description("Use as default connection")]    
    public Boolean DefaultConnection { get; set; }

    [Category("Connection")]
    [Description("Id of Phonebook Entry")]
    [ReadOnly(true)]
    public Guid Id { get; set; }

    [Category("Connection")]
    [Description("Name of connection")]
    [ReadOnly(true)]
    public string ConnectionName { get; set; }
    
    [Category("User Info")]
    [Description("Username for connection")]
    public string Username { get; set; }

    [Category("User Info")]
    [Description("Password for connection")]
    [PasswordPropertyText(true)]
    public string Password { get; set; }

    [Category("User Info")]
    [Description("Domain name for connection")]
    public string Domain { get; set; }

    [Category("Routes")]
    [Description("Routes to add to connection.  Network Address and Mask are only required.  Gateway will be assinged at runtime.")]
    public List<Route> Routes { get; set; }

    public override string ToString()
    {
      return this.ConnectionName;
    }
  }
}
